﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chilis.Caja.Core.Interfaces;
using Chilis.Caja.Data.Models;

namespace Chilis.Caja.Core
{
    public class DenominacionService : IDenominacionService
    {
        public List<Denominacion> ObtenerPorTipo(String sTipo)
        {
            ModelDataContext db = new ModelDataContext();

            return (from n in db.Denominacion
                    where n.IdDenominacion.StartsWith(sTipo)
                    orderby n.ValorDenominacion
                    select n).ToList<Denominacion>();    
        }
    }
}
